home *** CD-ROM | disk | FTP | other *** search
- property pCharCode, pSpr, pCharList, pTextList
-
- on beginSprite me
- global gDemoVersion, gDemoCharacters, gFullCharacters
- pSpr = sprite(me.spriteNum).member
- if gDemoVersion then
- pCharList = duplicate(gDemoCharacters)
- else
- pCharList = duplicate(gFullCharacters)
- end if
- sort(pCharList)
- pTextList = EMPTY
- repeat with OG in pCharList
- put string(OG) & RETURN after pTextList
- end repeat
- delete char -30000 of pTextList
- pSpr.member.text = pTextList
- end
-
- on mouseDown me
- thisLine = the mouseLine
- if keyPressed("1") then
- newSlot = 1
- else
- if keyPressed("2") then
- newSlot = 2
- else
- if keyPressed("3") then
- newSlot = 3
- else
- newSlot = VOID
- end if
- end if
- end if
- if (thisLine >= 1) and (thisLine <= count(pCharList)) then
- if not newCharacterEnters(#Always, pCharList[thisLine], newSlot) then
- alertBeep()
- end if
- end if
- end
-
- on mouseWithin me
- thisLine = the mouseLine
- if thisLine > 0 then
- hilite line thisLine of field the member of pSpr
- end if
- end
-